import { pageContent } from '@/base-ui/pageContent';
import { ref } from 'vue';
export const usePageSearch = () => {
  /* 处理搜索和重置点击事件 */
  const pageContentRef = ref<InstanceType<typeof pageContent>>();
  const handleResetClick = () => {
    pageContentRef.value.getTableData();
  };
  const handleSearchClick = (payLoad?: any) => {
    pageContentRef.value.getTableData(payLoad);
  };
  return { pageContentRef, handleResetClick, handleSearchClick };
};
